/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package telas;

import java.awt.Color;
import javax.swing.JPanel;

/**
 *
 * @author Max Weber
 */
public class o21TelaPesquisarCartao extends javax.swing.JFrame {

    /**
     * Creates new form O10TelaConsultarVacinas
     */
    public o21TelaPesquisarCartao() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bgEntrou = new javax.swing.JLabel();
        bgSaiu = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        painelFechar = new javax.swing.JPanel();
        btFechar = new javax.swing.JLabel();
        btMaxi = new javax.swing.JLabel();
        btMini = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbPesquisarCartao = new javax.swing.JTable();
        jTextField1 = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        btPainelModelo = new javax.swing.JPanel();
        icon = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        bgEntrou.setBackground(new java.awt.Color(68, 165, 237));
        bgEntrou.setText("jLabel4");

        bgSaiu.setBackground(new java.awt.Color(10, 66, 108));
        bgSaiu.setText("jLabel4");

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setUndecorated(true);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setBackground(new java.awt.Color(0, 114, 180));
        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/icone_barraDeTit.png"))); // NOI18N

        painelFechar.setBackground(new java.awt.Color(128, 128, 128));
        painelFechar.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                painelFecharMouseMoved(evt);
            }
        });
        painelFechar.addMouseWheelListener(new java.awt.event.MouseWheelListener() {
            public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
                painelFecharMouseWheelMoved(evt);
            }
        });
        painelFechar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                painelFecharMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                painelFecharMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                painelFecharMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                painelFecharMouseReleased(evt);
            }
        });

        btFechar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/fechar.png"))); // NOI18N
        btFechar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btFecharMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btFecharMouseEntered(evt);
            }
        });

        javax.swing.GroupLayout painelFecharLayout = new javax.swing.GroupLayout(painelFechar);
        painelFechar.setLayout(painelFecharLayout);
        painelFecharLayout.setHorizontalGroup(
            painelFecharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelFecharLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btFechar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        painelFecharLayout.setVerticalGroup(
            painelFecharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelFecharLayout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addComponent(btFechar)
                .addGap(3, 3, 3))
        );

        btMaxi.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/maximizar.png"))); // NOI18N

        btMini.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/minimizar.png"))); // NOI18N

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));
        jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        tbPesquisarCartao.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "CPF do Responsável", "Dono do Cartão", "Data de Nascimento"
            }
        ));
        jScrollPane1.setViewportView(tbPesquisarCartao);

        jPanel2.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, -1, 250));

        jTextField1.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
        jTextField1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));
        jPanel2.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 320, 390, 30));

        jLabel4.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
        jLabel4.setText("CPF do Responsável:");
        jPanel2.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 290, -1, -1));

        btPainelModelo.setBackground(new java.awt.Color(10, 66, 108));
        btPainelModelo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btPainelModeloMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btPainelModeloMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btPainelModeloMouseExited(evt);
            }
        });
        btPainelModelo.setLayout(new java.awt.GridBagLayout());

        icon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/excluir2.png"))); // NOI18N
        icon.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                iconMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                iconMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                iconMouseExited(evt);
            }
        });
        btPainelModelo.add(icon, new java.awt.GridBagConstraints());

        jPanel2.add(btPainelModelo, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 320, 50, 30));

        jLabel2.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 18)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("Pesquisar Cartão");

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/vacinapeq.png"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addGap(82, 82, 82)
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btMini)
                        .addGap(5, 5, 5)
                        .addComponent(btMaxi)
                        .addGap(5, 5, 5)
                        .addComponent(painelFechar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(3, 3, 3))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(painelFechar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel2)
                        .addComponent(jLabel1)
                        .addComponent(jLabel3))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btMaxi)
                            .addComponent(btMini))
                        .addGap(5, 5, 5)))
                .addGap(3, 3, 3)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)
                .addGap(3, 3, 3))
        );

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 500, 400));

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void painelFecharMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseReleased

    }//GEN-LAST:event_painelFecharMouseReleased

    private void painelFecharMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMousePressed
        //painelFechar.setBackground(Color.red);
    }//GEN-LAST:event_painelFecharMousePressed

    private void painelFecharMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseExited
        // TODO add your handling code here:
        painelFechar.setBackground(Color.gray);

    }//GEN-LAST:event_painelFecharMouseExited

    private void painelFecharMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseEntered
        // TODO add your handling code here:
        painelFechar.setBackground(Color.red);
    }//GEN-LAST:event_painelFecharMouseEntered

    private void bgEntra(JPanel painel){
        painel.setBackground(bgEntrou.getBackground());
    }
    
    private void bgSai(JPanel painel){
        painel.setBackground(bgSaiu.getBackground());
    }
    
    private void painelFecharMouseWheelMoved(java.awt.event.MouseWheelEvent evt) {//GEN-FIRST:event_painelFecharMouseWheelMoved

    }//GEN-LAST:event_painelFecharMouseWheelMoved

    private void painelFecharMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseMoved

    }//GEN-LAST:event_painelFecharMouseMoved

    private void btFecharMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btFecharMouseEntered
        painelFechar.setBackground(Color.red);
    }//GEN-LAST:event_btFecharMouseEntered

    private void btFecharMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btFecharMouseClicked
        // TODO add your handling code here:
        dispose();
    }//GEN-LAST:event_btFecharMouseClicked

    private void iconMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconMouseClicked
        // TODO add your handling code here:

    }//GEN-LAST:event_iconMouseClicked

    private void iconMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconMouseEntered
        bgEntra(btPainelModelo);
    }//GEN-LAST:event_iconMouseEntered

    private void iconMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconMouseExited
        bgSai(btPainelModelo);
    }//GEN-LAST:event_iconMouseExited

    private void btPainelModeloMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btPainelModeloMouseClicked
        // TODO add your handling code here:

    }//GEN-LAST:event_btPainelModeloMouseClicked

    private void btPainelModeloMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btPainelModeloMouseEntered
        // TODO add your handling code here:
        bgEntra(btPainelModelo);
    }//GEN-LAST:event_btPainelModeloMouseEntered

    private void btPainelModeloMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btPainelModeloMouseExited
        bgSai(btPainelModelo);
    }//GEN-LAST:event_btPainelModeloMouseExited

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(o21TelaPesquisarCartao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(o21TelaPesquisarCartao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(o21TelaPesquisarCartao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(o21TelaPesquisarCartao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new o21TelaPesquisarCartao().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel bgEntrou;
    private javax.swing.JLabel bgSaiu;
    private javax.swing.JLabel btFechar;
    private javax.swing.JLabel btMaxi;
    private javax.swing.JLabel btMini;
    private javax.swing.JPanel btPainelModelo;
    private javax.swing.JLabel icon;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JPanel painelFechar;
    private javax.swing.JTable tbPesquisarCartao;
    // End of variables declaration//GEN-END:variables
}
